class LoginModel {
  int expiredAt = 0;
  int id = 0;
  String nickName = "";
  String token = "";

  LoginModel({expiredAt, id, nickName, token});

  LoginModel.fromJson(Map<String, dynamic> json) {
    expiredAt = json['expired_at'];
    id = json['id'];
    nickName = json['nick_name'];
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['expired_at'] = this.expiredAt;
    data['id'] = this.id;
    data['nick_name'] = this.nickName;
    data['token'] = this.token;
    return data;
  }
}
